﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Z13qu.Model
{
    /// <summary>
    /// 系统日志
    /// </summary>
    public class Sys_Log : ICreationAudited
    {
        /// <summary>
        /// 日期ID
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 操作人ID
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string Account { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        /// 日期创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 操作模块名称
        /// </summary>
        public string ModuleName { get; set; }
        ///// <summary>
        ///// 日志类型（使用枚举LogType赋值）
        ///// </summary>
        ////public string Type { get; set; }

        /// <summary>
        /// 日志级别(使用枚举LogLevel赋值)
        /// </summary>
        public string Level { get; set; }
        /// <summary>
        /// IP地址
        /// </summary>
        public string IPAddress { get; set; }
        /// <summary>
        /// IP所在的城市名称
        /// </summary>
        public string IPAddressName { get; set; }
        /// <summary>
        /// 操作结果
        /// </summary>
        public bool? Result { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        public string CreatorUserId { get; set; }
        public DateTime? CreatorTime { get; set; }
    }
}
